﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<AgriMarketWebProj.AgriMarketService.Auctioneer>>" %>
<%@ Import Namespace="AgriMarketWebProj.AgriMarketService" %>
<%@ Import Namespace="AgriMarketWebProj.Models" %>
<%@ Import Namespace="System.Web.Script.Serialization" %>
<%@ Import Namespace="System.Web.Helpers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    AgriMarket|Quản trị danh sách đấu
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="caption" id="BidListCaption">              
        <h2>Danh sách đấu giá</h2>
    </div>
    <%=Html.ValidationSummary(false) %>

   <table class="table tableStatistic" id="BidListTable">
        <tr>
            <th>
                Price
            </th>
            <th>
                PostedDate
            </th>
            <th>
                AuctionId
            </th>
            <th>
                AuthorId
            </th>
            <th></th>
        </tr>
    
    <% foreach (var item in Model) { %>
        <tr>
            <td class="moneyfont">
                <%: Html.DisplayFor(modelItem => item.Price) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.PostedDate) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.AuctionId) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.AuthorId) %>
            </td>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.AuctioneerId }) %> |
<%--                <%: Html.ActionLink("Details", "Details", new { id=item.AuctioneerId }) %> |--%>
                <%: Html.ActionLink("Delete", "Delete", new { id=item.AuctioneerId }) %>
            </td>
        </tr>
    <% } %>
    
    </table>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <link href="../../Content/danhsachdaugia.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/Statistic.css" rel="stylesheet" type="text/css" />
</asp:Content>
